<!--首页走马灯的操作-->
<template>
  <div>
    <!--    走马灯-->
    <div style="height: 400px;width: 100%">
      <el-carousel indicator-position="outside">
        <el-carousel-item v-for="item in imglists" :key="item">
          <img :src="item" style="width: 600px" height="300px">
        </el-carousel-item>
      </el-carousel>

    </div>

  </div>

</template>

<script>
  export default {
    name: "index",
    data() {

      return {
        imglists: [
          require("@/assets/imgs/sandy.jpg"),
          require("@/assets/imgs/spongeBob.jpg"),
          require("@/assets/imgs/可爱皮卡.jpg"),
        ],
      }
    }
  }
</script>

<style scoped>

</style>
